import request from '@/utils/request'

// 查询外语语种信息列表
export function listForeign_language(query) {
  return request({
    url: '/foreign_language/foreign_language/list',
    method: 'get',
    params: query
  })
}

// 查询外语语种信息详细
export function getForeign_language(id) {
  return request({
    url: '/foreign_language/foreign_language/' + id,
    method: 'get'
  })
}

// 新增外语语种信息
export function addForeign_language(data) {
  return request({
    url: '/foreign_language/foreign_language',
    method: 'post',
    data: data
  })
}

// 修改外语语种信息
export function updateForeign_language(data) {
  return request({
    url: '/foreign_language/foreign_language',
    method: 'put',
    data: data
  })
}

// 删除外语语种信息
export function delForeign_language(id) {
  return request({
    url: '/foreign_language/foreign_language/' + id,
    method: 'delete'
  })
}
